package com.liwei.service.order.impl;

import com.liwei.service.order.impl.openfeign.MemberServiceFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderService {

    @Autowired
    private MemberServiceFeign memberServiceFeign;
    /**
     * 基于openfeign实现rpc远程调用
     */
    @RequestMapping("/orderFeignToMember")
    public String orderFeignToMember(){
        return "我是订单服务调用会员服务的接口    "+memberServiceFeign.getUser(1);
    }
}
